
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业列表</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="jlib/windows/jdialog.css" type="text/css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="jlib/windows/jdialog.js" type="text/javascript"></script><SCRIPT LANGUAGE="JavaScript">
<!--
$(function(){
	$("#more_search").click(function(){
		$(this).boxto({title:"查询", url: this.href,width:650, height:440, moveable:true});
		return false;
	});				
	$(".view").click(function(){
		$(this).boxto({title:"编辑", url: this.href,width:700, height:600, moveable:true});
		return false;
	});
	$("#new").click(function(){
		$(this).boxto({title:"新建", url: this.href,width:700, height:600, moveable:true});
		return false;
	});
	$("#xzqh").change(function(){
		var qhdm = $(this).val();
		$("#result").find(".row").each(function(){
			if(qhdm=="all"){
				$(this).show();
			}else{
				if($(this).attr("value")!=qhdm){
					$(this).hide();
				}else{
					$(this).show();
				}
			}
		});
	});
});

function closediv() {
	$.boxit.closeAll();
}
function del(){
	var flg = false;
	$("input[name='qydms']").each(function(){
		if($(this).attr("checked")){
			flg =true;
			return;
		}
	});
	if(!flg){
		alert("请选择");
		return;
	}
	if(window.confirm("确认删除")){
		$("form").submit();
	}
}
//-->
</SCRIPT>
</head>
<body>
<div id="btnsite">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="30" height="24" align="center"><img src="images/add.gif" /></td>
      <td width="70" align="left"><a id="new" href="/fact/edit.htm">增加</a></td>
      <td width="30" align="center"><img src="images/modification.gif" /></td>
      <td width="70" align="left">修改</td>
      <td width="30" align="center"><img src="images/delete.gif" /></td>
      <td width="70" align="left"><a href="javascript:del();">删除</a></td>
    </tr>
  </table>
</div>

<table width="99%" cellpadding="0" cellspacing="0" class="table" >
  <tr>
    <th colspan="4">查询列表</th>
  </tr>
  <tr>
    <td width="17%" align="center" class="rowColor rowColorRight">选择污染源类型</td>
    <td width="38%" class="row rowLeft">
    	
    	<select name="qhdm" id="xzqh">
    			<option value="all">所有</optin>
    		<#list xzqhs as xzqh>
    			<option value="${xzqh.qhdm}">${xzqh.qhmc}</option>
    		</#list>
    	</select>
  </tr>
</table>
<form action="qyxx/delete.htm" action="post">
<table id="result" width="99%" cellpadding="0" cellspacing="0" class="table" >
 <tr>
    <th colspan="4">查询结果</th>
  </tr>
  <tr value="">
    <td width="63"  class="gridSubTitle">序号</td>
    <td width="600"  class="gridSubTitle"> 企业名称</td>
    <td width="140"  class="gridSubTitle">行政区划</td>
    <td width="200"  class="gridSubTitle">管理</td>
  </tr>
  <#list list as qyxx>
  <tr class="row" value="${qyxx.qhdm}">
    <td align="center">
    <input type="checkbox" name="qydms" value="${qyxx.qydm}">
    ${qyxx_index+1}</td>
    <td class="gridCenter">${qyxx.qymc}</td>
    <td class="gridCenter">${qyxx.xzqhmc}</td>
    <td class="gridCenter"><a class="view" href="fact/edit.htm?factId=${qyxx.qydmPw}">编辑</a>
    <a href="qysbxx.htm?qydm=${qyxx.qydm}">查看监控信息</a>/<a href="online/list.htm?qydm=${qyxx.qydm}">查看在线数据</a>
    </td>
  </tr>
  </#list>
</table>
</body>
</html>
